django-admin startproject myproject

# 前后端分离
pip install djangorestframework
# 跨源访问
pip install django-cors-headers

python manage.py startapp first_app

python manage.py makemigrations  #生成迁移文件
python manage.py migrate    #将数据库表写入数据库中

python manage.py runserver 0.0.0.0:8000
python manage.py makemigrations snippets
python manage.py migrate
